﻿<Window x:Class="Mp3Cleaner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Mp3Cleaner" 
        DataContext="{Binding RelativeSource={RelativeSource Self}}"
 
        Name="window1" Title="MainWindow" Height="Auto" Width="Auto" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalAlignment="Center" SizeToContent="WidthAndHeight" VerticalAlignment="Center" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="676" d:DesignWidth="806"
        Icon="/Mp3Cleaner;component/wrona0.ico"
        Closed="window1_Closed" UseLayoutRounding="True"
        Background="Gainsboro"
        >
    <Window.Resources>


        <SolidColorBrush x:Key="DataGrid_Style0_Header" Color="#FF4F81BD"/>
        <SolidColorBrush x:Key="DataGrid_Style0_Alt0" Color="#FFD0D8E8"/>
        <SolidColorBrush x:Key="DataGrid_Style0_Alt1" Color="#FFE9EDF4"/>
        <SolidColorBrush x:Key="BrushCeruleanBlue" Color="#2A52BE"/>
        <!--Cerulean blue-->

        <LinearGradientBrush x:Key="HeaderGradientBrush" StartPoint="0,0" EndPoint="0,1">
            <GradientStop Color="DarkGreen" Offset="0.0"/>
            <GradientStop Color="Black" Offset="1.0"/>
        </LinearGradientBrush>

        <Style x:Key="ColumnHeaderStyle" TargetType="{x:Type  DataGridColumnHeader}">
            <Setter Property="Background" Value="{StaticResource HeaderGradientBrush}" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="Height" Value="22"/>
        </Style>


        <Style x:Key="buttonSmall" TargetType="Button">
            <Setter Property="Height" Value="23"/>
            <Setter Property="Width" Value="18"/>
            <Setter Property="Margin" Value="1,3,1,3"/>
            <Setter Property="Background" Value="NavajoWhite"/>
        </Style>


        <RadialGradientBrush x:Key="ButtonGRRadialBrush" GradientOrigin="0.75,0.25">
            <GradientStop Color="Yellow" Offset="0.0" />
            <GradientStop Color="Orange" Offset="0.5" />
            <GradientStop Color="Lime" Offset="1.0" />
        </RadialGradientBrush>



        <CollectionViewSource
      Source="{Binding Source={x:Static Application.Current}, Path=LD}"
      x:Key="_ld" />

        <DataTemplate x:Key="checkColor">
                <TextBlock x:Name="textChk">Rm Cmn</TextBlock>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding ElementName=checkBox_RemoveCommon, Path=IsChecked}" Value="False">
                    <Setter TargetName="textChk" Property="TextBlock.Foreground" Value="White"/>
                    <Setter TargetName="textChk" Property="TextBlock.Background" Value="Red"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ElementName=checkBox_RemoveCommon, Path=IsChecked}" Value="True">
                    <Setter TargetName="textChk" Property="TextBlock.Foreground" Value="Black"/>
                    <Setter TargetName="textChk" Property="TextBlock.Background" Value="Transparent"/>
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>


    </Window.Resources>
    
    <Window.ToolTip>
        <StackPanel>
            <TextBlock Name="tt0" FontWeight="ExtraBold">Drop here:</TextBlock>
            <WrapPanel>
                <TextBlock FontWeight="ExtraBold" Foreground="Blue"> &#8226; </TextBlock>
                <TextBlock Name="tt1" FontWeight="Bold" Foreground="Blue">music file</TextBlock>
            </WrapPanel>
            <WrapPanel>
                <TextBlock FontWeight="ExtraBold" Foreground="Blue"> &#8226; </TextBlock>
                <TextBlock Name="tt2" FontWeight="Bold" Foreground="Blue">directory with music files</TextBlock>
            </WrapPanel>
        </StackPanel>
    </Window.ToolTip>
        
    <Grid Height="Auto" Name="grid1" Width="Auto" ShowGridLines="False" DataContext="{Binding}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="620*" />
            <ColumnDefinition Width="100" />
        </Grid.ColumnDefinitions>

        <GridSplitter
            ResizeDirection="Columns" 
            Grid.Column="0"
            Grid.ColumnSpan="2" 
            Grid.Row="1" 
            Height="1" 
            HorizontalAlignment="Stretch" 
            VerticalAlignment="Stretch" 
            Margin="1" IsHitTestVisible="False" IsTabStop="False" />

        <DataGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="dataGrid1" VerticalAlignment="Stretch" 
                  ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}"
                  Background="Gainsboro"
                  FrozenColumnCount="1"
                  HeadersVisibility="All"
                  Grid.Column="0"
                  AllowDrop="True"
                  DragEnter="dataGrid1_DragEnter" DragLeave="dataGrid1_DragLeave" DragOver="dataGrid1_DragOver" Drop="dataGrid1_Drop"
                  CanUserReorderColumns="False"
                  CanUserSortColumns="False"
                  CanUserAddRows="False"
                  SelectionUnit="Cell"
                  SelectionMode="Single"
                  PreviewMouseLeftButtonDown="dataGrid1_PreviewMouseLeftButtonDown" PreviewMouseRightButtonDown="dataGrid1_PreviewMouseRightButtonDown"
                  >
            <!--                  ItemsSource="{Binding cd, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"-->
            <DataGrid.ContextMenu>
                <ContextMenu Name="contextMenu1">
                    <MenuItem x:Name="sentenceCaseToolStripMenuItem" Header="Sentence case" ToolTip="" Click="sentenceCaseToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="lowercaseToolStripMenuItem" Header="lowercase" ToolTip="" Click="lowercaseToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="uPPERCASEToolStripMenuItem" Header="UPPERCASE" ToolTip="" Click="uPPERCASEToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="capitalizeEachWordToolStripMenuItem" Header="Capitalize Each Word" ToolTip="" Click="capitalizeEachWordToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="tOGGLECASEToolStripMenuItem" Header="tOGGLE cASE" ToolTip="" Click="tOGGLECASEToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="SwaplastFirstToolStripMenuItem" Header="↔ Last, Firstname" ToolTip="" Click="SwaplastFirstToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="nextNumberToolStripMenuItem" Header="Next Number" ToolTip="" Click="nextNumberToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="clearAllNumbersToolStripMenuItem" Header="Clear all Numbers" ToolTip="Clear all tracks numbers" Click="clearAllNumbersToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="renumberToolStripMenuItem" Header="Renumber" ToolTip="Renumber all tracks" Click="renumberToolStripMenuItem_Click" Visibility="Collapsed"/>
                    <MenuItem x:Name="menuNone" Header="Nothing to do"/>
                </ContextMenu>
            </DataGrid.ContextMenu>
            <DataGrid.Columns>

                <DataGridTemplateColumn  Width="20" MinWidth="20">
                    <DataGridTemplateColumn.Header>
                        <TextBlock  Text=" * " ToolTipService.ToolTip="Changed"/>
                    </DataGridTemplateColumn.Header>
                    
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Name="xyz" Background="DarkGray" ToolTip="Changed">
                            <Image x:Name="IMG" Source="unchecked.png" Height="16" Width="16" />
                            </TextBlock>
                            <DataTemplate.Triggers>
                                <DataTrigger Binding="{Binding Marker}" Value="True">
                                    <Setter Property="Source" Value="checked.png" TargetName="IMG"/>
                                    <Setter TargetName="xyz" Property="Background" Value="DarkBlue"/>
                                </DataTrigger>
                            </DataTemplate.Triggers>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>


                <DataGridTextColumn Binding="{Binding Disk_FullFileName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Width="SizeToCells" MinWidth="50" >
                    <DataGridTextColumn.Header>
                        <TextBlock Text="Disk_FullFileName" ToolTipService.ToolTip="Original file name"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="Gainsboro" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>

                <DataGridTextColumn Binding="{Binding FileTrack,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="30" MinWidth="30" SortDirection="Ascending">
                    <DataGridTextColumn.Header>
                        <TextBlock Text=" # " ToolTipService.ToolTip="File Track Number"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="NavajoWhite" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>

                <DataGridTextColumn Binding="{Binding FileName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="SizeToCells" MinWidth="50">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="FileName" ToolTipService.ToolTip="File Name"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="NavajoWhite" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
                
                <DataGridTextColumn Binding="{Binding FileExt,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="40" MinWidth="40">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="Ext" ToolTipService.ToolTip="File Extension"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="NavajoWhite" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>



                <DataGridTextColumn Binding="{Binding tagTrack,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="30" MinWidth="30">
                    <DataGridTextColumn.Header>
                        <TextBlock Text=" # " ToolTipService.ToolTip="tagTrackNumber"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="PowderBlue" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
                
                <DataGridTextColumn Binding="{Binding tagTitle,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Width="SizeToCells" MinWidth="50">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="tagTitle" ToolTipService.ToolTip="tagTitle"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="PowderBlue" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
                
                <DataGridTextColumn Binding="{Binding tagArtist,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="SizeToCells" MinWidth="50">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="tagArtist" ToolTipService.ToolTip="tagArtist"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="PowderBlue" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
                
                <DataGridTextColumn Binding="{Binding tagAlbum,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Width="SizeToCells" MinWidth="50">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="tagAlbum" ToolTipService.ToolTip="tagAlbum"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="PowderBlue" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
                
                <DataGridTextColumn Binding="{Binding tagYear,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="SizeToCells" MinWidth="50">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="tagYear" ToolTipService.ToolTip="tagYear"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="PowderBlue" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
                
                <DataGridTextColumn Binding="{Binding tagGenre,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="60" MinWidth="50">
                    <DataGridTextColumn.Header>
                        <TextBlock Text="tagGenre" ToolTipService.ToolTip="tagGenre"/>
                    </DataGridTextColumn.Header>
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="Background" Value="PowderBlue" />
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>

            </DataGrid.Columns>
        </DataGrid>
        
        <StackPanel Grid.Column="1" Background="Gainsboro" HorizontalAlignment="Stretch" Name="stackPanel1" VerticalAlignment="Top" >
            <Button Content="Clean!" Style="{StaticResource buttonStd}" Name="buttonDoClean" Background="{StaticResource LimeYellowBrush}" Click="buttonDoClean_Click" ToolTip="Clean this"/>
            <CheckBox  ContentTemplate="{StaticResource checkColor}" Height="16" HorizontalAlignment="Left" Margin="15,5,5,5" Name="checkBox_RemoveCommon" VerticalAlignment="Top" IsChecked="True" IsThreeState="False" ToolTip="Enable: remove common parts in Filename and tagTitle">
                <TextBlock x:Name="textChk">Rm Cmn</TextBlock>
            </CheckBox>
            <!--
            <CheckBox Height="16" HorizontalAlignment="Left" Margin="15,5,5,5" Name="checkBox_RemoveCommon" VerticalAlignment="Top" IsChecked="True" IsThreeState="False" ToolTip="Enable: remove common parts in Filename and tagTitle" Checked="checkBox_RemoveCommon_Checked" Unchecked="checkBox_RemoveCommon_Unchecked" Loaded="checkBox_RemoveCommon_Loaded">
                <TextBlock  x:Name="checkText" Text="Rm Cmn" />
            </CheckBox>
            -->
            <Button Content="Save!" Style="{StaticResource buttonStd}" Name="buttonWrite" Background="{StaticResource LimeYellowBrush}" Click="buttonWrite_Click" ToolTip="Save current"/>
                    
            <TextBlock/>
            <Button Content="Remove" Style="{StaticResource buttonStd}" Name="buttonRemove" Background="NavajoWhite" Click="buttonRemove_Click" ToolTip="Remove something from FileName\nregular expressions are supported"/>
            <TextBlock/>

            <Button Content="# &#8656;" Height="23" Name="buttonCpTrack" Width="75" Background="NavajoWhite" Margin="5" Click="buttonCpTrack_Click">
                <Button.ToolTip>
                    <StackPanel>
                        <TextBlock FontWeight="ExtraBold">COPY:</TextBlock>
                        <TextBlock/>
                        <WrapPanel VerticalAlignment="Center">
                            <TextBlock Background="NavajoWhite" VerticalAlignment="Center">FileTrackNumber</TextBlock>
                            <TextBlock FontWeight="ExtraBold" FontSize="22" VerticalAlignment="Center"> &#8656; </TextBlock>
                            <TextBlock Background="PowderBlue" VerticalAlignment="Center">tagTrackNumber</TextBlock>
                        </WrapPanel>
                    </StackPanel>
                </Button.ToolTip>
            </Button>

            <Button Content="Title &lt;--" Style="{StaticResource buttonStd}" Name="buttonCpName" Background="NavajoWhite" Click="buttonCpName_Click">
                <Button.ToolTip>
                    <StackPanel>
                        <TextBlock FontWeight="ExtraBold">COPY:</TextBlock>
                        <TextBlock/>
                        <WrapPanel VerticalAlignment="Center">
                            <TextBlock Background="NavajoWhite" VerticalAlignment="Center">FileName</TextBlock>
                            <TextBlock FontWeight="ExtraBold" FontSize="22" VerticalAlignment="Center"> &#8656; </TextBlock>
                            <TextBlock Background="PowderBlue" VerticalAlignment="Center">tagTitle</TextBlock>
                        </WrapPanel>
                    </StackPanel>
                </Button.ToolTip>
            </Button>

            <Button Content="File &lt;= A+T" Style="{StaticResource buttonStd}" Name="buttonCombineTagTitle" Background="NavajoWhite" Click="buttonCombineTagTitle_Click">
                <Button.ToolTip>
                    <StackPanel>
                        <TextBlock FontWeight="ExtraBold">MAKE:\nFileName from tagArtist + tagTitle\n(SHIFT: tagTitle + tagArtist)</TextBlock>
                        <TextBlock/>
                        <WrapPanel VerticalAlignment="Center">
                            <TextBlock Background="NavajoWhite" VerticalAlignment="Center">FileName</TextBlock>
                            <TextBlock FontWeight="ExtraBold" FontSize="22" VerticalAlignment="Center"> &#8656; </TextBlock>
                            <TextBlock Background="PowderBlue" VerticalAlignment="Center">tagArtist + tagTitle</TextBlock>
                        </WrapPanel>
                    </StackPanel>
                </Button.ToolTip>
            </Button>

            <WrapPanel HorizontalAlignment="Center" Margin="0,5,0,0">
                <Button Content="1" Style="{StaticResource buttonSmall}" Name="button_100" ToolTip="add 100 to FileTrackNumber" Tag="1" Click="button_x00_Click"/>
                <Button Content="2" Style="{StaticResource buttonSmall}" Name="button_200" ToolTip="add 200 to FileTrackNumber" Tag="2" Click="button_x00_Click"/>
                <Button Content="3" Style="{StaticResource buttonSmall}" Name="button_300" ToolTip="add 300 to FileTrackNumber" Tag="3" Click="button_x00_Click"/>
                <Button Content="4" Style="{StaticResource buttonSmall}" Name="button_400" ToolTip="add 400 to FileTrackNumber" Tag="4" Click="button_x00_Click"/>
            </WrapPanel>
            <TextBlock/>

            <Button Content="# -- >" Style="{StaticResource buttonStd}" Name="button2tagTrack" Background="PowderBlue" Click="button2tagTrack_Click">
                <Button.ToolTip>
                    <StackPanel>
                        <TextBlock FontWeight="ExtraBold">COPY:</TextBlock>
                        <TextBlock/>
                        <WrapPanel VerticalAlignment="Center">
                            <TextBlock Background="NavajoWhite" VerticalAlignment="Center">FileTrackNumber</TextBlock>
                            <TextBlock FontWeight="ExtraBold" FontSize="22" VerticalAlignment="Center"> &#8658; </TextBlock>
                            <TextBlock Background="PowderBlue" VerticalAlignment="Center">tagTrack</TextBlock>
                        </WrapPanel>
                    </StackPanel>
                </Button.ToolTip>
            </Button>

            <Button Content="Title =>" Style="{StaticResource buttonStd}" Name="button2tagTitle" Background="PowderBlue" Click="button2tagTitle_Click">
                <Button.ToolTip>
                    <StackPanel>
                        <TextBlock FontWeight="ExtraBold">COPY:</TextBlock>
                        <TextBlock/>
                        <WrapPanel VerticalAlignment="Center">
                            <TextBlock Background="NavajoWhite" VerticalAlignment="Center">FileName</TextBlock>
                            <TextBlock FontWeight="ExtraBold" FontSize="22" VerticalAlignment="Center"> &#8658; </TextBlock>
                            <TextBlock Background="PowderBlue" VerticalAlignment="Center">tagTitle</TextBlock>
                        </WrapPanel>
                    </StackPanel>
                </Button.ToolTip>
            </Button>

            <Button Content="tagTitle => /" Style="{StaticResource buttonStd}" Name="buttonSplitTagTitle" Background="PowderBlue" Click="buttonSplitTagTitle_Click">
                <Button.ToolTip>
                    <StackPanel>
                        <TextBlock FontWeight="ExtraBold">SPLIT:\ntagTitle into tagTitle and tagAuthor\n(SHIFT: into tagAuthor and tagTitle)\n\ntagTitle must contain a separator: / or -</TextBlock>
                        <TextBlock/>
                        <WrapPanel VerticalAlignment="Center">
                            <TextBlock Background="NavajoWhite" VerticalAlignment="Center">tagTitle</TextBlock>
                            <TextBlock FontWeight="ExtraBold" FontSize="22" VerticalAlignment="Center"> &#8658; </TextBlock>
                            <TextBlock Background="PowderBlue" VerticalAlignment="Center">tagTitle and tagAuthor</TextBlock>
                        </WrapPanel>
                    </StackPanel>
                </Button.ToolTip>
            </Button>
            <Button Content="WP" AllowDrop="false" Style="{StaticResource buttonStd}" Name="buttonConvertToWP" Background="{StaticResource BrushCeruleanBlue}" Click="buttonConvertToWP_Click"   ToolTip="Convert to Windows Phone compatible tags" />
            <TextBlock/>
            <Button Content="=> Artist" AllowDrop="True" Style="{StaticResource buttonStd}" Name="buttonSetTagArtist" Background="PowderBlue" Click="buttonSetTagArtist_Click" ToolTip="fill all 'tagArtist' fields" DragEnter="buttonSetTagArtist_DragEnter" DragOver="buttonSetTagArtist_DragOver" Drop="buttonSetTagArtist_Drop" />
            <Button Content="=> Album" AllowDrop="True" Style="{StaticResource buttonStd}" Name="buttonSetTagAlbum" Background="PowderBlue" Click="buttonSetTagAlbum_Click" ToolTip="fill all 'tagAlbum' fields" DragEnter="buttonSetTagAlbum_DragEnter" DragOver="buttonSetTagAlbum_DragOver" Drop="buttonSetTagAlbum_Drop" />
            <Button Content="=> Year" AllowDrop="True" Style="{StaticResource buttonStd}"  Name="buttonSetTagYear" Background="PowderBlue" Click="buttonSetTagYear_Click" ToolTip="fill all 'tagYear' fields" DragEnter="buttonSetTagYear_DragEnter" DragOver="buttonSetTagYear_DragOver" Drop="buttonSetTagYear_Drop" />
            <Button Content="=> Genre" AllowDrop="True" Style="{StaticResource buttonStd}" Name="buttonSetTagGenre" Background="PowderBlue" Click="buttonSetTagGenre_Click" ToolTip="fill all 'tagGenre' fields" DragEnter="buttonSetTagGenre_DragEnter" DragOver="buttonSetTagGenre_DragOver" Drop="buttonSetTagGenre_Drop" />
            <TextBlock/>

            <Button Content="?" Name="buttonHelp" Style="{StaticResource buttonStd}" Background="LightGreen" ToolTip="Help" Click="Help_Click"/>

        </StackPanel>
        
    </Grid>
</Window>
